#include<bits/stdc++.h>
using namespace std;
inline int read(){
	int res=0;
	char c=getchar();
	while(!isdigit(c))c=getchar();
	while(isdigit(c)){
		res=(res<<3)+(res<<1)+(c^48);
		c=getchar();
	}
	return res;
}
int main(){
	freopen("palin.in","r",stdin);
	freopen("palin.out","w",stdout);
	int T=read();
	while(T--)cout<<-1<<endl;
	fclose(stdin);
	fclose(stdout);
	return 0;
}
